package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.Result;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);


    List<Role> findAll();

    Role findById(Integer id);

    void add(Role role, Integer[] perIds, Integer[] menuIds);

    Result delete(Integer id);

    void update(Role role, Integer[] perIds, Integer[] menuIds);
}
